var Mock = require('mockjs')
var data = Mock.mock({
    'list|1-10': [{
        'id|+1': 1
    }]
})

console.log(JSON.stringify(data, null, 4))

// node D:\projects\js\yunnong-vue\src\mock\test.js 执行